package org.ym.demo.service.impl;

import java.sql.SQLException;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;
import org.ym.demo.dao.IUserDao;
import org.ym.demo.dao.model.UserInfo;

@Component
public class UserServiceImpl {
	
	@Resource
	private IUserDao dao;
	
	public void addUserInfo(UserInfo user) throws SQLException {
		
		dao.saveUser(user);
		
		user.setName("22222");
		
	}

	public void delUser(UserInfo user) throws SQLException {
	}

	public void editUsre(UserInfo user) throws SQLException {
	}

}
